package com.gelsanalyzer.ui.swing.command;

import java.awt.event.*;
import java.beans.*;

import javax.swing.*;

import com.gelsanalyzer.mvc.controller.*;

public class SaveCommand extends AbstractAction implements Command {

    private IController controller;

    public SaveCommand(String label, IController controller) {
        this(label, null, null, null, controller);
    }

    public SaveCommand(String label,
                       ImageIcon icon,
                       String desc,
                       Integer mnemonic,
                       IController controller) {
        super(label, icon);
        putValue(SHORT_DESCRIPTION, desc);
        putValue(MNEMONIC_KEY, mnemonic);
        this.controller = controller;
    }

    public void Execute() {

    }

    
    public void actionPerformed(ActionEvent e) {
        controller.propertyChange(new PropertyChangeEvent(this,
            AbstractController.APP_SAVE_MODELS, null, null));
    }

}
